<?php
$this->title = $news['new']['title'];
?>
<div class="page">
    <div class="head_banner_bg" style="background-image: url(/static/frontend/image/news_bg.jpg)">
        <div class="contBox">
            <div class="news-page-banner clearfix">
                <h2>展会资讯</h2>
                <div class="pull-right list_head_title_tab flex">
                    <a href="#" class="flex f_center btn_red"><i class="iconfont">&#xe665;</i>展商报名</a>
                    <a href="#" class="flex f_center btn_yel"><i class="iconfont">&#xe608;</i>观众登记</a>
                </div>
            </div>
        </div>
    </div>
    <div class="contBox news-page-content">
        <div class="detailBox_title fbox">
            <span>新闻详情</span>
            <div class="fr detailBox_title_search news_search">
                <input type="text" placeholder="请输入查找内容" />
                <i class="btn_red iconfont" data-url="<?=Yii::$app->urlManager->createUrl(['news/index', 'categoryId' => '1'])?>">&#xe643;</i>
            </div>
        </div>
        <div class="detailMin_box_min clearfix">
            <!--左边正文内容-->
            <div class="detailMin_box_min_left pull-left">
                <!--数据展示内容-->
                <div class="article">
                    <h3 class="article_title"><?= $news['new']['title']?></h3>
                    <div class="article_attribute">
                        <span><i class="iconfont t_red">&#xe615;</i>&nbsp;<em><?= date('Y-m-d',$news['new']['created_at'])?></em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php if (!empty($news['news']['comefrom'])){ ?>来源：<?= $news['new']['comefrom']?><?php } ?></span>
                    </div>
                    <div class="article_content img"><?= $news['new']['content']?></div>
                    <div class="article-views">
                        <div class="views-icon">
                            <div><i class="iconfont">&#xe612;</i></div>
                            <p><?= $news['new']['views'] ?></p>
                        </div>
                        <div class="share-icon">
                            <div></div>
                            <p><?= $news['new']['shares'] ?></p>
                        </div>
                    </div>
                </div>

                <div class="article_link clearfix">
                    <?php
                    if(!empty($news['prev'])){
                    ?>
                        <div class="pull-left"><span>上一篇：</span><a href="<?=Yii::$app->urlManager->createUrl(['news/detail','id'=>$news['prev']['id']])?>"><?=$news['prev']['title']?></a></div>
                    <?php
                    }
                    ?>
                    <?php
                    if(!empty($news['next'])){
                    ?>
                        <div class="pull-right text-right"><span>下一篇：</span><a href="<?=Yii::$app->urlManager->createUrl(['news/detail','id'=>$news['next']['id']])?>"><?=$news['next']['title']?></a></div>
                    <?php
                    }
                    ?>
                </div>
                <?php
                if(!empty($news['related'])){
                ?>
                <div class="related">
                    <h3>相关资讯</h3>
                    <div class="related-list">
                        <?php
                        foreach ($news['related'] as $val){
                        ?>
                        <div class="related-info clearfix">
                            <div class="pull-left related-date">
                                <div class="related-date-d"><?= date('d',$val['created_at'])?></div>
                                <div class="related-date-y-m"><?= date('Y-m',$val['created_at'])?></div>
                            </div>
                            <div class="pull-right related-attribute">
                               <div class="related-title"><a href="<?=Yii::$app->urlManager->createUrl(['news/detail', 'id' => $val['id']])?>"><?= $val['title']?></a></div>
                               <p class="related-desc"><?= $val['desc']?></p>
                            </div>
                        </div>
                        <?php
                        }
                        ?>
                    </div>
                </div>
                <?php
                }
                ?>
            </div>
            <!--右侧直通车-->
            <div class="detailMin_box_min_right pull-right">
                <div class="detailMin_box_min_right_title flex f_between f_relative">
                    <i class="iconfont btn_red right-hot-icon">&#xe63b;</i>
                    <span>热门展会</span>
                    <a href="<?=Yii::$app->urlManager->createUrl(['zhanhui/index'])?>" class="more">更多&gt;&gt;</a>
                </div>
                <div class="foot_line"></div>
                <?= \frontend\widgets\Hotexhibition::widget()?>
                <div class="detailMin_box_min_right_title flex f_between f_relative">
                    <i class="iconfont btn_red">&#xe6af;</i>
                    <span>展会资讯</span>
                    <a href="<?=Yii::$app->urlManager->createUrl(['news/index'])?>" class="more">更多&gt;&gt;</a>
                </div>
                <div class="foot_line"></div>
                <?= frontend\widgets\Exhibitionnews::widget()?>
                <!-- //谁来参展 -->
                <?= frontend\widgets\Exhibitor::widget()?>

                <div class="detailMin_box_min_right_recommoned img">
                    <?=\frontend\widgets\Ad::widget(['position' => 'news_detail_right_bottom'])?>
                </div>
            </div>
            <!--对比浮层-->
        </div>

        <div class="divider"></div>
    </div>
</div>